﻿using Microsoft.AspNetCore.Mvc.Filters;

namespace BaseProject.Web.Filters
{
    public class AuthorityFilter : ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            //判断是否有权限
            //TODO

            base.OnActionExecuting(filterContext);
        }

        public string Code { set; get; }//要验证的权限的代码
        public bool IsModal { get; set; } = false; //是否弹窗
    }
}